package com.cardbaobao.cardbabyclient.utils;

import android.content.Context;

import com.cardbaobao.cardbabyclient.base.App;

/**
 * Created by Jiangzx on 10:41.
 * 对外提供一个公用的获取App的静态方法
 */

public class ApplicationHelper {
    /**
     * 获取application级别context
     * @return application context
     */
    public static Context getApplicationContext(){
        return App.mContext;
    }

    /**
     * 获取自定义application
     * @return 自定义application
     */
    public static App getApplication(){
        return App.instance;
    }
}
